<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>博客列表</title>
    <link rel="stylesheet" href="./Css/common.css">
    <link rel="stylesheet" href="./Css/blog_list.css">
</head>
<body>
    <div class="nav">
        <img src="./image/西南石油大学.jpeg" alt="">
        <span>我的博客系统</span>
        <span class="spacer"></span>
        <a href="blog_list.html">主页</a>
        <a href="blog_edit.html">写博客</a>
        <a href="logout">注销</a>
    </div>
    <div class="container">
        <div class="left">
            <div class="card">
                <img src="./image/图片2.jpeg" alt="">
                <h3 th:text="${user.username}"></h3>
                <a href="https://gitee.com/wen-junhao000">github地址</a>
                <div class="couter">
                    <span>文章</span>
                    <span>分类</span>
                </div>
                <div class="couter">
                    <span>1</span>
                    <span>2</span>
                </div>
            </div>
        </div>
        <div class="right">
            <div class="blog" th:each="blog : ${blogs}">
                <div class="title" th:text="${blog.title}"></div>
                <div class="date" th:text="${blog.postTime}"></div>
                <div class="desc" th:text="${blog.content}"></div>
                <a th:href="${'blog_detail.html?blogId=' + blog.blogId}" class="detail">查看全文&gt;&gt;</a>
            </div>
        </div>
        
    </div>
</body>
</html>